<p><?= $this->App->buttonLink('+ Novi Tip Reklame', '/ad_types/create') ?></p>
<?= $this->element('entity_table', array(
    'columns' => array(
        'Id'          => 'AdType.id',
        'Naziv'       => 'AdType.name',
        'Cena izrade' => array( 'AdType.price', function($row) {
            return currency_format($row['AdType']['price']);
        }),
        'Po'          => 'AdType.unit'
    ),
    'columnWidth' => array(
        'Id'          => '1%',
        'Naziv'       => '50%',
        'Cena izrade' => '20%',
        'Po'          => '5%'
    ),
    'links' => array(
        'Naziv'    => array('/ad_types/edit/%d', 'AdType.id')
    ),
    'filter' => array(
        'Naziv'       => ''.@$filter['AdType']['name'],
        'Cena izrade' => ''.@$filter['AdType']['price']
    ),
    'data'     => $ad_types,
    'id'       => 'AdType.id',
    'entity'   => 'ad_types',
    'sort_by'  => $sort_by,
    'sort_dir' => $sort_dir
)) ?>
